package com.aurora.supermarket.presenter;

import com.aurora.supermarket.base.BasePresenter;
import com.aurora.supermarket.base.JsonCallback;
import com.aurora.supermarket.util.Logger;
import com.aurora.supermarket.view.MainActivityView;
import com.lzy.okgo.model.Response;

/**
 * Created by Administrator on 2018/3/22.
 */

public class MainPresenter extends BasePresenter<MainActivityView>{


    public MainPresenter(MainActivityView baseView) {
        super(baseView);
    }

    public void requestData() {
        baseModel.sendRequestToServer("https://github.com/jeasonlzy/okhttp-OkGo", null, new JsonCallback() {
            @Override
            public void onSuccess(Response<String> response) {
                Logger.e("testok",response.body());
            }
        });
    }
}
